
<div class="easyui-layout" style="width:100%;height:1000px;">
	<div region="north" style="overflow:hidden;height:70px;padding-left:25px;">
		<table align="left">
			<tr>
				<td>
					<img src="<?= base_url()?>assets/default/images/user/association.png"/>
				</td>
				<td valign="middle">
					<h1>View associations</h1>
				</td>
			</tr>
		</table>
	</div>
	<div region="south" split="true" style="height:50px;background:#fafafa;">
	</div>
	<div region="east" icon="icon-reload" title="Notifications" split="true" style="width:250px;">
	</div>
	<div region="west" split="true" title="Navigation" style="width:200px;">
		<?= $navigation?>
	</div>
	<div region="center" title="User Profile" style="background:#fafafa;padding:10px;">
		
<?php foreach ($associationsData as $association){ ?>

<script type="text/javascript">
	$(function(){
		$('#association-panel-<?= $association["id"]?>').panel({
			title: "Association: <?= $association["raison_social"]?>",
			tools:[{
				iconCls:'icon-edit',
				handler: function(){
					window.location = "<?= site_url("user/edit_association")."/".$association["id"]?>";
				}
			},{
				iconCls:'icon-remove',
				handler: function(){
					window.location = "<?= site_url("user/remove_association")."/".$association["id"]?>";
				}
			}]
		});
	});
</script>
	
	<div id="association-panel-<?= $association["id"]?>" class="easyui-panel"  style="padding:10px;">
	
		<table width="100%" cellspacing="0" cellpadding="3" border="0">
	        <tbody>
	          <tr>
	            <td>Raison Social: </td>
	            <td>&nbsp; <?= $association["raison_social"]?></td>
	          </tr>
	          <tr>
	            <td>Email: </td>
	            <td>&nbsp; <?= $association["mail"]?></td>
	          </tr>
	          <tr>
	            <td>Fondateur: </td>
	            <td>&nbsp; <?= $association["fondateur"]?></td>
	          </tr>
	          <tr>
	            <td>Date: </td>
	            <td>&nbsp; <?= $association["date_fondation"]?></td>
	          </tr>
	          <tr>
	            <td>Contact: </td>
	            <td>&nbsp; <?= $association["contact"]?></td>
	          </tr>
	          <tr>
	            <td>Telephone: </td>
	            <td>&nbsp; <?= $association["telephone"]?></td>
	          </tr>
	          <tr>
	            <td>Address: </td>
	            <td>&nbsp; <?= $association["adresse"]?></td>
	          </tr>
	          <tr>
	            <td>Description: </td>
	            <td>&nbsp; <?= $association["description"]?></td>
	          </tr>
	        </tbody>
		</table>
	</div>		
	<br/>	
<?php } ?>
		
	</div>
</div>






